async function foo() {
  const c = 5
  if (c < 5) {
    const a = 1;
  const b = 2;
  let array = [];
  array.push(a, b);
  return array;
  } else {
    const r = 3;
    const t = 2;
    let array = [];
    array.push(r, t);
    return array;
  }

}

async function main () {
  const data = await foo();
  console.log('data:' + data);
}

main();